import java.util.Scanner;

public class JavaDemoScanner2 { 
    public static void main (String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.println("请输入您的上次考试分数");
        int oldScore = scanner.nextInt();
        
        System.out.println("请输入您的这次考试分数");
        int newScore = scanner.nextInt();

        int score1 = newScore - oldScore;
        System.out.println("第一个数据" + score1);
        // 这里引入了强制类型转换 防止出现整数
        double score2 = (double)score1 / oldScore;
        System.out.println("第二个数据" + score2);
        double percentage = score2 * 100;

        System.out.printf("您好，您上次分数%d,这次分数%d,提升了%f",oldScore,newScore,percentage);

    }
}